<template>
    <div>
        <Form :show-message="false" label-position="top" >
            <Row :gutter="16">
                <Col span="12">
                    <FormItem label="公司名称">
                        <Input class="width90" v-model.trim="detail.enterpriseName" readonly/>
                    </FormItem>
                </Col>
                <Col span="12">
                    <FormItem label="项目名称" >
                        <Input class="width90" v-model.trim="detail.projectName" readonly/>
                    </FormItem>
                </Col>
                <Col span="12">
                    <FormItem label="工点名称">
                        <Input class="width90" v-model.trim="detail.constructionPointName" readonly/>
                    </FormItem>
                </Col>
                <Col span="12">
                    <FormItem label="工点风险等级">
                        <Input class="width90" v-model.trim="detail.riskLevelName"  readonly/>
                    </FormItem>
                </Col>
                <Col span="12">
                    <FormItem label="起始时间">
                        <Input class="width90" v-model.trim="detail.startTime" readonly/>
                    </FormItem>
                </Col>
                <Col span="12">
                    <FormItem label="结束时间">
                        <Input class="width90" v-model.trim="detail.endTime" readonly/>
                    </FormItem>
                </Col>
                <Col span="12">
                    <FormItem label="当月是否作业">
                        <Input class="width90" v-model.trim="detail.isWork" readonly/>
                    </FormItem>
                </Col>
                <Col span="24">
                    <FormItem label="工点描述">
                        <Input style="width: 95%" type="textarea" v-model.trim="detail.constructionPointDescription" readonly/>
                    </FormItem>
                </Col>
                <Col span="12">
                    <FormItem label="作业风险名称">
                        <Input class="width90" v-model.trim="detail.riskName"  readonly/>
                    </FormItem>
                </Col>
                <Col span="12">
                    <FormItem label="作业风险类型">
                        <Input class="width90" v-model.trim="detail.riskCategoryNames" readonly/>
                    </FormItem>
                </Col>
                <Col span="12">
                    <FormItem label="作业风险等级">
                        <Input class="width90" v-model.trim="detail.riskLevelName" readonly/>
                    </FormItem>
                </Col>
                <Col span="12">
                    <FormItem label="分级方法">
                        <Input class="width90" v-model.trim="detail.classificationMethodName" readonly/>
                    </FormItem>
                </Col>
                <Col span="24">
                    <FormItem label="具体风险描述">
                        <Input style="width: 95%" type="textarea" v-model.trim="detail.riskDescription" readonly/>
                    </FormItem>
                </Col>
                <!-- <Col span="24">
                    <FormItem label="工程公司管控要求">
                        <Input style="width: 95%" type="textarea" v-model.trim="detail.engineeringCompanyRegulatoryRequirements" readonly/>
                    </FormItem>
                </Col>
                <Col span="24">
                    <FormItem label="集团公司管控要求">
                        <Input style="width: 95%" type="textarea" v-model.trim="detail.groupCompanyRegulatoryRequirements" readonly/>
                    </FormItem>
                </Col>
                <Col span="24">
                    <FormItem label="目前该风险安全控制情况">
                        <Input style="width: 95%" type="textarea" v-model.trim="detail.currentSaftyControlOfTheRisk" readonly/>
                    </FormItem>
                </Col> -->
            </Row>
        </Form>
    </div>
</template>
<script>
export default {
    props:['detailObj'],
    data(){
        return{
            detail:{},
        }
    },
    methods:{
        setId(){
            setTimeout(()=>{
                let id = this.detailObj.riskOrderId
                this.dynamicRiskOrderDetail(id)
            },1000)
        },
        dynamicRiskOrderDetail(id){
            this.$api.MonthlyDynamics.processDetailId(id).then(resp=>{
                if(resp.code == 200){
                    // resp.data.startTime = this.$time(new Date(resp.data.startTime),'yyyy-MM-dd')
                    // resp.data.endTime = this.$time(new Date(resp.data.endTime),'yyyy-MM-dd')
                    this.detail = resp.data
                }
            })
        }
    }
}
</script>